//
//  ViewController.m
//  GitTest
//
//  Created by 超 on 2018/8/1.
//  Copyright © 2018年 超. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
    view.backgroundColor = [UIColor redColor];
    [self.view addSubview:view];
    UILabel *textLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
    textLabel.text = @"123";
    textLabel.font = [UIFont systemFontOfSize:16];
    textLabel.textColor = [UIColor yellowColor];
    textLabel.backgroundColor = [UIColor redColor];
    [self.view addSubview:textLabel];
    UITextField *textField=[[UITextField alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
    textField.delegate = self;
    textField.placeholder = @"占位文字";
    textField.font = [UIFont systemFontOfSize:16];
    textField.textColor = [UIColor redColor];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    textField.clearsOnBeginEditing = YES;
    textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    textField.returnKeyType = UIReturnKeyNext;
    [textField setValue:[UIColor blueColor] forKeyPath:@"_placeholderLabel.textColor"];
    [self.view addSubview:textField];
    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
